package test3_31;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Homework17_6 {
    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 22; i++) {
            list.add(i + 1);
        }
        System.out.println(list);

        for (int i = 0; i < 5; i++) {
            Collections.shuffle(list);
            List<Integer> group = list.subList(0, 6);
            System.out.println("第 " + (i+1) + " 组: " + group);
        }

    }
}
